package org.csu.mypetstoreapi.vo;

import lombok.Data;
import org.csu.mypetstoreapi.entity.Account;
import org.csu.mypetstoreapi.entity.Profile;
import org.csu.mypetstoreapi.entity.SignOn;

@Data
public class AccountVO {
    private String username;
    private String email;
    private String firstName;
    private String lastName;
    private String status;
    private String address1;
    private String address2;
    private String city;
    private String state;
    private String zip;
    private String country;
    private String phone;
    private String langpref;
    private String favcategory;
    private int mylistopt;
    private int banneropt;
    private String password;
    public AccountVO(){}
    public AccountVO(Account account, Profile profile, SignOn signOn) {
        this.username = account.getUsername();
        this.email = account.getEmail();
        this.firstName = account.getFirstName();
        this.lastName = account.getLastName();
        this.status = account.getStatus();
        this.address1 = account.getAddress1();
        this.address2 = account.getAddress2();
        this.city = account.getCity();
        this.state = account.getState();
        this.zip = account.getZip();
        this.country = account.getCountry();
        this.phone = account.getPhone();
        this.langpref = profile.getLangpref();
        this.favcategory = profile.getFavcategory();
        this.mylistopt = profile.getMylistopt();
        this.banneropt = profile.getBanneropt();
        this.password = signOn.getPassword();
    }
}